package com.qing.design.patterns.abstract_factory.example.app;

import com.qing.design.patterns.abstract_factory.example.buttons.Button;
import com.qing.design.patterns.abstract_factory.example.checkboxes.Checkbox;
import com.qing.design.patterns.abstract_factory.example.factories.GUIFactory;

public class Application {

	private Button button;
	private Checkbox checkbox;

	public Application(GUIFactory guiFactory){
		this.button=guiFactory.createButton();
		this.checkbox=guiFactory.createCheckbox();
	}

	public void paint(){
		button.paint();
		checkbox.paint();
	}
}
